package com.github.shiqiyue.app.modules.sys.enums;


import com.github.shiqiyue.app.common.enums.IBaseEnum;

/***
 * 验证码类型
 * @author wenyao.wu
 * @date 2019/7/19
 */
public enum CaptchaTypeEnum implements IBaseEnum {

    /***
     * 登录验证码
     */
    LOGIN("登录验证码", 1),

    ;
    /***
     * 名称
     */
    private String name;

    /***
     * 值
     */
    private Integer value;

    CaptchaTypeEnum(String name, Integer value) {
        this.name = name;
        this.value = value;
    }

    @Override
    public String getName() {
        return name;
    }

    @Override
    public Integer getValue() {
        return value;
    }

    @Override
    public String toString() {
        return value.toString();
    }
}
